<?php
require 'core.inc.php';
require 'connect.inc.php';

if (!loggedin())
{
	include 'loginform.inc.php';
	//echo '<br>';
	//echo '<a href="register.php">Register</a>';
	
}
else
{
	echo 'Welcome, '.$_SESSION['firstname'].'!';
	echo ' <a href="logout.php">Log out</a>';
}
?>